package com.xyazm.market.mapstruct;


import com.xyazm.market.domain.dto.CalculateOrderAmountDTO;
import com.xyazm.market.domain.param.CalculateOrderAmountParam;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 营销 api mapstruct
 * @author xuyou
 * 2022/6/1 0001 21:58
*/
@Mapper
public interface MarketApiMapstruct {

    MarketApiMapstruct INSTANCE = Mappers.getMapper(MarketApiMapstruct.class);

    CalculateOrderAmountDTO.OrderAmountDTO convertOrderAmountDTO(CalculateOrderAmountParam.OrderAmountParam param);

    List<CalculateOrderAmountDTO.OrderAmountDTO> convertOrderAmountDTO(List<CalculateOrderAmountParam.OrderAmountParam> param);

}
